package com.dx.mes.common.dao;

import com.dx.common.table.ppt.Bis_stocker;
import com.dx.common.table.ppt.Ret_box_xfr;
import com.dx.mes.common.core.dao.GenericDao;
import com.dx.mes.common.table.rtnBean.SimpleRtnBeen;
import com.dx.mes.common.table.rtnBean.rtd.StockerBeen;

import java.util.List;

public interface IBisStockerDao extends GenericDao<Bis_stocker, String> {
	/**
	 * Load Return Stocker Information
	 * @param tool_id
	 * @param port_id
	 * @return
	 */
	SimpleRtnBeen comStkInLoadReturnPati(String tool_id, String port_id);
	
	/**
	 * Sum Carrier Use Count Of Stocker'sPartition & Zone
	 * @param stocker_id
	 * @return
	 */
	SimpleRtnBeen comStkInSumStockInCrr(String stocker_id, List<Ret_box_xfr> box_xfrList);

	/**
	 * Load Information Of Stocker's Partition & Zone
	 * @param stocker_id
	 * @return
	 */
	SimpleRtnBeen comStkInLoadStocker(String stocker_id);

	/**
	 * Check Stocker'Partition & Zone Usage
	 * @param stockerBeenList
	 * @param stocker_id
	 * @param pati_id
	 * @param zone_id
	 * @return
	 */
	SimpleRtnBeen comStkInCheckStcUsage(List<StockerBeen> stockerBeenList, String stocker_id,
                                        String pati_id, String zone_id);
}
